﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using SharedGenomics.Annotations;

namespace SharedGenomics.Workbench.Views.WindowsForms
{
    public partial class NcbiAnnotationSummaryView : View, INcbiAnnotationSummaryView
    {
        public NcbiAnnotationSummaryView()
        {
            InitializeComponent();
        }

        public NcbiAnnotation NcbiAnnotation
        {
            set
            {
                this.lbGeneNames.Text = String.Join(", ", value.GeneNames.ToArray());
                this.bindingSource.DataSource = value;
            }
        }

        public override string Title
        {
            get { return "Ncbi summary"; }
        }
    }
}
